<?php
/**
 * 铁牛直营产品
 * User: 顾永海
 * Date: 2016/10/22
 * Time: 12:46
 */

namespace Admin\Model;

use Admin\Common\Model\CommonModel;

class KanJiaModel extends CommonModel
{
    //定义主表名称
    protected $tableName = 'kanjia_pro';

    //获取列表
//    public function getList($where = array(), $order = array('id'=>"DESC"))
//    {
//        //开始分页信息
//        $count = $this->count();
//        //分页
//        $Page = new \Think\Page($count, 10);//实例化分页类 传入总记录数和每页显示的记录数(25)
//        $show = $Page->show();  //分页显示输出
//        $limit = $Page->firstRow . ',' . $Page->listRows;
//        $list = $this ->where($where)->order('tp.id desc')->limit($limit)->field('tp.*')->select();
//        $arr = array('count' => $count, 'list' => $list, 'show' => $show, 'nowPage' => $Page->nowPage, 'totalPages' => $Page->totalPages);
//        return $arr;
//    }
}